\documentclass[master=mai,masteroption=ecs,english]{kulemt}
\setup{title={Agents exchange code, a study of role delegation},
  author={Wouter Pijpops},
  promotor={Prof.\,dr.Tom Holvoet},
  assessor={Prof.\,dr.Tom Holvoet}}
% De volgende \setup mag verwijderd worden als geen fiche gewenst is.
% \setup{filingcard,
%   translatedtitle={Agents exchange code, a study of role delegation},
%   udc=681.3*I20,
%   shortabstract={Here comes a very short abstract, containing no more than 500
%     words. \LaTeX\ commands can be used here. Blank lines (or the command
%     \texttt{\string\pa r}) are not allowed!
%     \endgraf}}
% Verwijder de "%" op de volgende lijn als je de kaft wil afdrukken
\setup{coverpageonly}
% Verwijder de "%" op de volgende lijn als je enkel de eerste pagina's wil
% afdrukken en de rest bv. via Word aanmaken.
%\setup{frontpagesonly}


% Kies de fonts voor de gewone tekst, bv. Latin Modern
\setup{font=lm}

% Hier kun je dan nog andere pakketten laden of eigen definities voorzien

% Tenslotte wordt hyperref gebruikt voor pdf bestanden.
% Dit mag verwijderd worden voor de af te drukken versie.
%\usepackage[pdfusetitle,colorlinks,plainpages=false]{hyperref}
%\usepackage{hyperref}

\begin{document}

\begin{preface}
This thesis is made as a completion of the master artificial intelligence at
KULeuven.

Several persons have contributed academically, practically and with support to
this master thesis.Therefore I would like to thank my promotor
and assessor Prof. dr.Tom Holvoet for his time, valuable input and support
throughout the entire master period. 
Furthermore I would like to thank Ning Gui for his help, practical insights
and technical knowledge throughout the first part of the process.

Finally I would like to thank my girlfriend, family and friends for their help
and support during my time studying artificial intelligence at KULeuven.

\end{preface}

\tableofcontents*

\begin{abstract}

In multi-agent systems the environments are becoming more and more complex.
Agents need to collaborate to achieve certain goals but with fixed behaviours
they are not able anymore to cope with the dynamics in those environments.
So there is a big demand for agents that are easily adaptable and
reconfigurable in such a way they can handle the dynamics. To achieve that, the
behaviours of those agents must be interchangeable and thus functional code will have to be
redistributed among other agents. An agent with such capabilities will be able
to play several roles in the environment and can execute different types of tasks.
With recent developments in the Java programming language, a framework called
OSGi could help us to develop a component based agent structure that allows code
migration. The goal of the thesis is checking the feasibility of code migration
in an agent structure based on the OSGi technology. As a result we have made a
concrete view on the terms like 'role' and 'task' and made a basic agent design
around it. From that design we developed an agent made of different components
that was able to share parts of the functional code and a highly dynamic behaviour
is reached. To test the solution a demo was contructed where such agents solved
a pickup and delivery problem.

\end{abstract}

% Een lijst van figuren en tabellen is optioneel
%\listoffigures
%\listoftables
% Bij een beperkt aantal figuren en tabellen gebruik je liever het volgende:
\listoffiguresandtables
% De lijst van symbolen is eveneens optioneel.
% Deze lijst moet wel manueel aangemaakt worden, bv. als volgt:
\chapter{List of Abbreviations and Symbols}
\section*{Abbreviations}
\begin{flushleft}
  \renewcommand{\arraystretch}{1.1}
  \begin{tabularx}{\textwidth}{@{}p{12mm}X@{}}
    MAS   & Multi Agent System \\
    DS   & Declarative Services \\
    OSGi   & Open Services Gateway Initiative \\
    ACL   & Agent Communication Language \\
    FIPA   & Foundation for Intelligent Physical Agents \\
    JAR & Java Archive\\
  \end{tabularx}
\end{flushleft}
% \section*{Symbols}
% \begin{flushleft}
%   \renewcommand{\arraystretch}{1.1}
%   \begin{tabularx}{\textwidth}{@{}p{12mm}X@{}}
%     $E$   & Energy \\
%     $m$   & Mass \\
%     $\pi$ & The number pi \\
%     $m$   & Mass \\
%   \end{tabularx}
% \end{flushleft}

% Nu begint de eigenlijke tekst
\mainmatter

\include{intro}
\include{Background}
\include{model}
\include{implementation}
\include{demo}
\include{conclusion}

% Indien er bijlagen zijn:
%\appendixpage*          % indien gewenst
\appendix
\include{app-A}


\backmatter
% Na de bijlagen plaatst men nog de bibliografie.
% Je kan de  standaard "abbrv" bibliografiestijl vervangen door een andere.
\bibliographystyle{unsrt}

\bibliography{references}

\end{document}
